package com.zwb.demo.easyweb.modules.database.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;


/**
 * 数据库列
 */
@Data
@ApiModel(value = "数据库列")
public class DatabaseColumnVO {

    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "表id")
    private String tableId;

    @ApiModelProperty(value = "列名")
    private String columnName;

    @ApiModelProperty(value = "物理类型")
    private String columnType;

    @ApiModelProperty(value = "列描述")
    private String columnDesc;

    @ApiModelProperty(value = "是否主键")
    private Boolean columnKey;

    @ApiModelProperty(value = "排序")
    private Integer columnOrder;

    @ApiModelProperty(value = "是否为空")
    private Boolean nullable;

    @ApiModelProperty(value = "java类型")
    private String javaType;

    @ApiModelProperty(value = "java名")
    private String javaName;

    @ApiModelProperty(value = "表单验证")
    private Boolean formDisplay = false;

    @ApiModelProperty(value = "验证可空")
    private Boolean validateNullable = false;

    @ApiModelProperty(value = "验证最小长度")
    private Integer validateMinLength ;

    @ApiModelProperty(value = "验证最大长度")
    private Integer validateMaxLength ;

    @ApiModelProperty(value = "验证最小值")
    private Integer validateMinValue ;

    @ApiModelProperty(value = "验证最大值")
    private Integer validateMaxValue ;

    @ApiModelProperty(value = "表格展示")
    private Boolean tableDisplay = true;
}